/**
 * 
 */
package com.cua24.donkeyroll;

import org.andengine.engine.camera.Camera;
import org.andengine.entity.sprite.Sprite;
import org.andengine.opengl.util.GLState;

import com.cua24.donkeyroll.SceneManager.SceneType;

/**
 * @author dikaberg
 *
 */
public class SplashScene extends BaseScene {

	@Override
	public void createScene() {
		splash = new Sprite(0,0,resourcesManager.splash_region,vbom){
			@Override
			protected void preDraw(GLState pGLState, Camera pCamera) {
				super.preDraw(pGLState, pCamera);
				pGLState.enableDither();
			}
		};
		splash.setScale(1.5f);
		splash.setPosition(400,240);
		attachChild(splash);
	}

	

	@Override
	public void onBackKeyPressed() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public SceneType getSceneType() {
		return SceneType.SCENE_SPLASH;
	}

	@Override
	public void disposeScene() {
		splash.detachSelf();
		splash.dispose();
		this.detachSelf();
		this.dispose();
	}
	
	private Sprite splash;
	
}
